/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.manufacturers;

/**
 *
 * @author Shaun McCready
 */
public class PurchaseOrder {

    private String  orderNum;
    private String  customerRef;
    private Product product;
    private int     quantity;
    private float   unitPrice;
    private boolean paid = false;

    //Need to have a field for paid status to know if it was paid or not.prob a boolean

    public PurchaseOrder()
    {

    }

    public PurchaseOrder(String ordNum, String custRef, Product prod, int qty, float unitP)
    {
        orderNum = ordNum;
        customerRef = custRef;
        product = prod;
        quantity = qty;
        unitPrice = unitP;
    }



    public String getOrderNum() {
        return orderNum;
    }

    public String getCustomerRef() {
        return customerRef;
    }

    public Product getProduct() {
        return product;
    }

    public int getQuantity() {
        return quantity;
    }

    public float getUnitPrice() {
        return unitPrice;
    }

    public boolean isPaid() {
        return paid;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public void setCustomerRef(String customerRef) {
        this.customerRef = customerRef;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public void setUnitPrice(float unitPrice) {
        this.unitPrice = unitPrice;
    }

    public void setPaid(boolean paid) {
        this.paid = paid;
    }


}
